﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace Retail.Models.DBModels
{
    [Table(TableName = "index_articles_flag", PrimaryKey = "ID")]
    public class Index_Articles_Flag : BaseEntity
    {
        public Index_Articles_Flag()
        { }
        #region Model
        private int _id;
        /// <summary>
        ///
        /// </summary>
        [Column(IsAutoIncrement = true)] 
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        
        private string articlesTypeName;
        /// <summary>
        ///新闻标题
        /// </summary>
        public string ArticlesTypeName
        {
            get { return articlesTypeName; }
            set { this.ChangeNotify<string>("ArticlesTypeName", value, ref articlesTypeName); }
        }  
        private DateTime _addtime;
        /// <summary>
        ///
        /// </summary>
        public DateTime AddTime
        {
            get { return _addtime; }
            set { this.ChangeNotify<DateTime>("AddTime", value, ref _addtime); }
        }
        #endregion
    }
}
